package top.malaoshi.webmvc.exception;

import org.springframework.http.HttpStatus;

import javax.servlet.ServletException;

public class NotFoundException extends ServletException {
    private int code = HttpStatus.NOT_FOUND.value();

    public NotFoundException(String message) {
        super(message);
    }

    public int getCode() {
        return code;
    }
}
